#if ...else ...
score=59.5
# if score>90:
#   print('一等奖')
# if score > 80 and score<90:
#   print('二等奖')
# else:
#   print('不奖励')

#多种选择判断，代替switch开关语句，python中不支持switch
# if score>90:
#     print('一等奖')
# elif score > 80:
#     print('二等奖')
# elif score > 70:
#     print('三等奖')
# else:
#     print('没有奖品')

#if 多重嵌套
#1 石头 ， 2 剪刀 ，3 布
import  random
# computer=random.randint(1, 3) #随机获取1-3的整数
# print(computer)
# player=int(input('请输入1 石头|2 剪刀|3 布:'))
# if player==1 and computer==2:
#     print('赢了')
# elif player==2 and computer==3:
#     print('赢了')
# elif player==3 and computer==1:
#     print('赢了')
# elif  player==computer:
#     print('平局')
# else:
#     print('输了')

print('-'*40)
# player=1
# computer=random.randint(1, 3)
# #1 石头 ， 2 剪刀 ，3 布
# if player==1:
#     if computer==1:
#         print('平局')
#     elif computer==2:
#         print('赢了')
#     elif computer ==3:
#         print('输了')
#     else:
#        print('系统输入错误')

a=10
b=12
max=0
# if a>b:
#     print(f'a={a}')
# else:
#     print(f'b=',b)

max=  a if a>b else b
print('max=',max)